//
//  TheraTakeplanCell.m
//  yilutongxing
//
//  Created by T&J on 2017/11/15.
//  Copyright © 2017年 YZE. All rights reserved.
//

#import "TheraTakeplanCell.h"

@implementation TheraTakeplanCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    [self setSelectionStyle:UITableViewCellSelectionStyleNone];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)setConstraintsForType:(NSUInteger)contype{
    switch (contype) {
        case 1:
        {
            [self.time_index mas_makeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(self.contentView).offset(30);
            }];
            [self.unit mas_makeConstraints:^(MASConstraintMaker *make) {
                make.right.equalTo(self.contentView).offset(-30);
            }];
        }
            break;
            
        default:
            break;
    }
}

@end
